#!/usr/bin/env python
#-*- coding:utf-8 -*- 

import itertools

l = list(itertools.permutations([1,2,3,4],3))	#生成排列的list
l_string = [''.join('%s' % id for id in x) for x in l]	#生词排列的字符串
l_num = [int(id) for id in l_string]	#转换成整数

print(l_num)